package org.jradweb.core.orm;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Id;

import org.apache.log4j.Logger;

/**
 * 
 * 
 * Created On 2008-4-7
 * 
 * @author <a href="mailto:wagzhi@gmail.com">Paul Wang</a>
 * @version $Id: MultiSiteAbstractModel.java 149 2008-10-10 03:10:10Z wagzhi $
 */
@javax.persistence.MappedSuperclass
public abstract class MultiSiteAbstractModel<T> extends HibernateModel<T,MultiSiteKey> {

	private static final Logger log = Logger.getLogger(MultiSiteAbstractModel.class);

	protected MultiSiteKey id=new MultiSiteKey(null,0);
	protected Date createdAt = new Date();
	protected Date updatedAt = new Date();

	@Id
	@Embedded
	public MultiSiteKey getId() {
		return id;
	}

	public void setId(MultiSiteKey id) {
		this.id = id;
	}

	@Column(name = "created_at")
	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Column(name = "updated_at")
	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	

	

}
